
import cv2
from Vision import Vision

'''
Created on Nov 5, 2012

@author: x220
'''
calib_img_chessboad = cv2.imread("OpenCV_Chessboard.png")
    
if __name__ =='__main__':
    vision = Vision(calib_img_chessboad, True)
    vision.start("soble", "127.0.0.1", 5000)
    ch = 0
    while (not vision.calibrated) and ch != ord('q'): 
        ch =cv2.waitKey(10)
    print "main" 
    while(ch != ord('q')): 
        vision.run() 
        ch =cv2.waitKey(10)
    vision.stop();